<p>
<%= ts("A gift story has been posted for you ") %>
<%= @collection ? "in the #{@collection.title} collection " : "" %>at the Archive of Our Own!
</p>

<p>
  <%= link_to @work.title, work_url(@work) %> <%= "(#{@work.word_count} words)" %><br />
  by <%= @work.anonymous? ? "an anonymous giver" : @work.pseuds.collect(&:byline).join(", ") %><br />
  <%= "Fandom: " + @work.fandom_string unless @work.fandom_string.blank? %></br />
  <% unless @work.summary.blank? %>
    Summary: 
    <blockquote>
      <%=raw sanitize_field(@work, :summary) %>
    </blockquote>
  <% end %>
  <% if @collection && !@collection.gift_notification.blank? %>
    <%= @collection.gift_notification %>
  <% end %>
</p>


<p>
  Please note: if you don't want to receive emails like this one, you can set your preferences 
  at the archive not to receive notification of gift stories.
</p>
